/*
 * @Author: wuhao930406 1148547900@qq.com
 * @Date: 2023-07-27 13:45:19
 * @LastEditors: wuhao930406 1148547900@qq.com
 * @LastEditTime: 2023-07-27 14:00:13
 * @FilePath: /legion-iot/src/pages/system/spare_supplier/columns.js
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
 */
import { Image, Switch } from "antd";
import { EyeFilled } from "@ant-design/icons";

function getcolumns(enable) {
  return {
    columns: [
      {
        title: "供应商",
        dataIndex: "supplier_id",
        key: "supplier_id",
        valueType: "select",
        options: { path: "/supplier", params: {is_all:1} },
      },
      {
        title: "库存",
        dataIndex: "stock",
        key: "stock",
        valueType: "digit",
        search:false
      },
    ],
    pathconfig: {
      enableadd: true,
      enableedit: true,
      enabledelete: true,
      enabledetail: false,
      add: "/spare_supplier",
      edit: "/spare_supplier",
      list: "/spare_supplier",
      delete: "/spare_supplier",
      detail: "",
    },
  };
}
export default getcolumns;
